package com.hhit.zhgd.service.impl

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
import com.hhit.zhgd.dao.OperateLogMapper
import com.hhit.zhgd.domain.entity.OperateLog
import com.hhit.zhgd.service.OperateLogService
import org.springframework.stereotype.Service

@Service("operateLogService")
class OperateLogServiceImpl : ServiceImpl<OperateLogMapper, OperateLog>(), OperateLogService {

    override fun save(adminId: Long?, url: String?, method: String?, params: String?, ip: String?) {
        val operateLog = OperateLog(adminId = adminId, url = url, method = method, params = params, ip = ip)
        this.save(operateLog)
    }

    override fun getList(page: Page<OperateLog>, params: HashMap<String, Any?>): Page<HashMap<String, Any?>> {
        return this.baseMapper.getList(page, params)
    }

}